import { resolve } from 'path'
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'

// https://vite.dev/config/
export default defineConfig({
  plugins: [vue()],
  server: {
    host: '0.0.0.0',
    port: 5173
  },
  resolve: {
    extensions: ['.js', '.ts', '.jsx', '.tsx', '.json', '.vue'],
    alias:{
      '@': resolve(__dirname,'src/'),
      'components': resolve(__dirname,'src/components/'),
      'utils': resolve(__dirname,'src/utils/'),
      'api': resolve(__dirname,'src/api/'),
    }
  }
})
